#include<stdio.h>
int main()
{
    int a=0;
    int x1,x2,x3,x4;
    printf("Enter a number:");
    scanf("%d",&a);
    int b=a/1000,c=(a%1000)/100,d=(a%100)/10,e=a%10;
    //printf("%d %d %d %d",b,c,d,e);
    x1=(b+9)%10;
    x2=(c+9)%10;
    x3=(d+9)%10;
    x4=(e+9)%10;
    printf("The encrypted number is %d%d%d%d",x3,x4,x1,x2);
    return 0;
}
